package cmd

import (
	"github.com/spf13/cobra"
	"time"
	"wskyygyso/api/pkg/console"
	"wskyygyso/api/pkg/redis"
)

var CmdPlay = &cobra.Command{
	Use:   "play",
	Short: "测试执行",
	Run:   runPlay,
}

func runPlay(cmd *cobra.Command, args []string) {
	redis.Redis.Set("hi", "hello", time.Second*20)
	console.Success(redis.Redis.Get("hi"))
}
